<template>
	<view>
		<view class="container" style="padding: 3%;padding-top: 6%;">
			<uni-list >
				<uni-list-item title="新消息设置	" showArrow link="redirectTo" to="./chat" @click="onClick" />
			</uni-list>
			<uni-list>
				<uni-list-item title="通用" showArrow link="redirectTo" to="./chat" @click="onClick" />
			</uni-list>
		</view>
		<view class="container" style="padding: 3%;">
			<uni-list >
				<uni-list-item title="帮助与技巧	" showArrow link="redirectTo" to="./chat" @click="onClick" />
			</uni-list>
			<uni-list>
				<uni-list-item title="建议或投诉通道" showArrow link="navigateTo" to="advice" @click="onClick" />
			</uni-list>
			<uni-list>
				<uni-list-item title="关于" rightText="v1.0.0" to="./chat1" @click="onClick" />
			</uni-list>
		</view>
		<view class="container" style="padding: 3%;">
			<uni-list>
				<uni-list-item title="清理缓存" rightText="168.7MB" to="./chat" @click="onClick" />
			</uni-list>
		</view>
		
		<view class="container" style="padding: 3%;">
			<button>
				退出登录
			</button>
		</view>
		<view class="container" style="padding: 2%;">
			<button>
				注销账户
			</button>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				extraIcon: {
					color: '#4cd964',
					size: '22',
					type: 'gear-filled'
				}
			};
		},
		methods: {
			onClick(e) {
				console.log('执行click事件', e.data)
				uni.showToast({
					title: '点击反馈'
				});
			},
			switchChange(e) {
				uni.showToast({
					title: 'change:' + e.value,
					icon: 'none'
				});
			}
		}
	};
</script>


<style lang="scss">
	.slot-box {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		align-items: center;
	}

	.slot-image {
		/* #ifndef APP-NVUE */
		display: block;
		/* #endif */
		margin-right: 10px;
		width: 30px;
		height: 30px;
	}

	.slot-text {
		flex: 1;
		font-size: 14px;
		color: #4cd964;
		margin-right: 10px;
	}
</style>

